package com.ulic.customerManApplication.commonmodule.bo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;





@Entity
@Table(name="T_UM_ORGAN")
@SequenceGenerator(name="organization_seq",sequenceName="UM_ORGAN_ID")
public class Organization implements Serializable{

	/**
	 * 组织机构信息
	 */
	private static final long serialVersionUID = 1L;

	private String um_organ_id;//编号
	
	private String parent_id;//父模块id
	
	private String full_name;//组织名称
	
	private String abbr_name;//机构简称
	
	private String um_org_code;//HR机构代码
	
	private int org_level;//机构级别
	
	private int org_type;//机构种类
	
	private String zip;//邮政编码
	
	private String address;//联系地址
	
	private String telephone;//电话号码
	
	private String fax;//机构传真
	
	private char status;//机构状态
	
	private String organ_id;//对应核心系统机构id
	
	private String dept_id;//对应核心系统部门id
	
	private Date insert_time;//系统记录插入时间
	
	private Date update_time;//最新更新时间
	
//	private Set<User> users = new HashSet<User>();//员工 
	
	

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="organization_seq")
	public String getUm_organ_id() {
		return um_organ_id;
	}

	public void setUm_organ_id(String um_organ_id) {
		this.um_organ_id = um_organ_id;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getParent_id() {
		return parent_id;
	}

	public void setParent_id(String parent_id) {
		this.parent_id = parent_id;
	}

	public String getFull_name() {
		return full_name;
	}

	public void setFull_name(String full_name) {
		this.full_name = full_name;
	}

	public String getAbbr_name() {
		return abbr_name;
	}

	public void setAbbr_name(String abbr_name) {
		this.abbr_name = abbr_name;
	}

	public String getUm_org_code() {
		return um_org_code;
	}

	public void setUm_org_code(String um_org_code) {
		this.um_org_code = um_org_code;
	}

	public int getOrg_level() {
		return org_level;
	}

	public void setOrg_level(int org_level) {
		this.org_level = org_level;
	}

	public int getOrg_type() {
		return org_type;
	}

	public void setOrg_type(int org_type) {
		this.org_type = org_type;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public char getStatus() {
		return status;
	}

	public void setStatus(char status) {
		this.status = status;
	}

	public String getOrgan_id() {
		return organ_id;
	}

	public void setOrgan_id(String organ_id) {
		this.organ_id = organ_id;
	}

	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}

	public Date getInsert_time() {
		return insert_time;
	}

	public void setInsert_time(Date insert_time) {
		this.insert_time = insert_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}


//	@OneToMany(targetEntity = User.class,cascade=CascadeType.REFRESH,fetch = FetchType.EAGER ,mappedBy = "organization")
//	public Set<User> getUsers() {
//		return users;
//	}
//
//
//	public void setUsers(Set<User> users) {
//		this.users = users;
//	}

	
	
    
	 
	
	
}
